﻿using NewBusiness.Domain;
using NewBusiness.Domain.Uow.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TMS.NewBusiness.Domain;


namespace NewBusiness
{
    public interface IBusinessContext
    {
        IWorkItemsContext WorkItemsContext { get; }
        IUserContext UserContext { get; }
        IBookmarkContext BookmarkContext { get; }
        IUrlContext UrlContext { get; }
        string SayHello();
        void CreateBookmark(Bookmark bm);
    }

    public class BusinessContext : IBusinessContext
    {
        public IWorkItemsContext WorkItemsContext { get; private set; }
        public IUserContext UserContext { get; private set; }
        public IBookmarkContext BookmarkContext { get; private set; }
        public IUrlContext UrlContext { get; private set; }
        public BusinessContext(IWorkItemsContext workItemsContext, IUserContext userContext, IBookmarkContext bookmarkContext, IUrlContext urlContext)
        {
            WorkItemsContext = workItemsContext;
            BookmarkContext = bookmarkContext;
            UrlContext = urlContext;
        }
        public string SayHello()
        {
            return "Hello!";
        }


        public void CreateBookmark(Bookmark bm)
        {
          // BookmarkContext.
        }
    }
}
